<?php

//$form = $this->form;
////$form->setAttribute('action', $this->url('login/process', array( 'action' => 'authenticate',)));
//$form->prepare();
// 
//echo $this->form()->openTag($form);
//echo $this->formCollection($form);
//echo $this->form()->closeTag();
//var_dump($this->form()->openTag($form));
//var_dump($this->formCollection($form));
//var_dump($this->form()->closeTag());
?>
<form  method="post" action="/auth/authenticate">
  <input type="text" name="username"><br>
  <input type="text" name="password" <br>
  <input type="submit" value="Submit">
</form>

<?php
if ($this->messages){
    echo '<ul>';
    foreach($this->messages as $message)
    {
        echo '<li>'.$message.'</li>';
    }
    echo '</ul>';
}